<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php 
$editorLoaded = false;
if($_REQUEST['editor'])
{
	if(is_file('components/'.$katana->ActiveCores[$_REQUEST['con']]->getHandle().'/view/'.$_REQUEST['editor'].'/editor.php'))
	{ 
		require('view/'.$_REQUEST['editor'].'/editor.php'); 
		$editorLoaded = true;
	}
}
if(($_REQUEST['list'] != '') && ($editorLoaded == false))
{
	if(is_file('components/'.$katana->ActiveCores[$_REQUEST['con']]->getHandle().'/view/'.$_REQUEST['list'].'/list.php'))
	{ 
		require('view/'.$_REQUEST['list'].'/list.php');
		if(!defined('AJAX_RUN'))
		{ require('auto.js.php'); }
	}
}
?>